home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
ptolemy
/
pt-0.002
/
pt-0.6.linux-dynamic-patch1
Wrap
Text File
|
1996-04-24
|
3KB
|
84 lines
diff -rcd oldpt/ptolemy/mk/config-linux.mk users/ptolemy/mk/config-linux.mk
*** oldpt/ptolemy/mk/config-linux.mk Thu Apr 4 20:53:46 1996
--- users/ptolemy/mk/config-linux.mk Thu Apr 25 04:08:50 1996
***************
*** 93,104 ****
# linker to use for pigi and interpreter.
LINKER = $(CPLUSPLUS)
# Location of GNU libg++ shared libraries
SHARED_COMPILERDIR = /usr/lib#$(PTOLEMY)/gnu/$(PTARCH)/lib
SHARED_COMPILERDIR_FLAG = -L$(SHARED_COMPILERDIR)
# Command to build C++ shared libraries
! SHARED_LIBRARY_COMMAND = $(CPLUSPLUS) -shared $(SHARED_COMPILERDIR_FLAG) -o
# Command to build C shared libraries
CSHARED_LIBRARY_COMMAND = $(CC) -shared $(SHARED_COMPILERDIR_FLAG) -o
--- 93,113 ----
# linker to use for pigi and interpreter.
LINKER = $(CPLUSPLUS)
+ #ifeq ($(USE_SHARED_LIBS),yes)
+ # Use Position Independent Code to build shared libraries
+ C_SHAREDFLAGS = -fpic
+ CC_SHAREDFLAGS = -fpic
+ # mk/userstars.mk uses these vars
+ USER_C_SHAREDFLAGS = $(C_SHAREDFLAGS)
+ USER_CC_SHAREDFLAGS = $(CC_SHAREDFLAGS)
+ LIBSUFFIX = so
+
# Location of GNU libg++ shared libraries
SHARED_COMPILERDIR = /usr/lib#$(PTOLEMY)/gnu/$(PTARCH)/lib
SHARED_COMPILERDIR_FLAG = -L$(SHARED_COMPILERDIR)
# Command to build C++ shared libraries
! SHARED_LIBRARY_COMMAND = $(CC) -shared $(SHARED_COMPILERDIR_FLAG) -o
# Command to build C shared libraries
CSHARED_LIBRARY_COMMAND = $(CC) -shared $(SHARED_COMPILERDIR_FLAG) -o
***************
*** 117,122 ****
--- 126,132 ----
# be absolute pathnames, not relative pathnames.
SHARED_LIBRARY_PATH = $(PTOLEMY)/lib.$(PTARCH):$(PTOLEMY)/octtools/lib.$(PTARCH):$(SHARED_COMPILERDIR):$(PTOLEMY)/tcltk/tcl.$(PTARCH)/lib/shared:$(PTOLEMY)/tcltk/tk.$(PTARCH)/lib/shared/:$(PTOLEMY)/tcltk/itcl.$(PTARCH)/lib/shared
SHARED_LIBRARY_R_LIST = -Wl,-R,$(SHARED_LIBRARY_PATH)
+ #endif
# domains/ipus/islang uses BISONFLEXLIBS
BISONFLEXLIB = -fl
***************
*** 139,145 ****
# Don't use -m486, it's the default, except for those with the
# Pentium optimized compiler; for them -m486 makes things worse.
#OPTIMIZER = -g #-m486 -pipe
! OPTIMIZER = -O2 #-fomit-frame-pointer #-m486 -pipe
# -Wsynth is new in g++-2.6.x, however 2.5.x does not support it
# Under gxx-2.7.0 -Wcast-qual will drown you with warnings from libg++ includes
WARNINGS = -Wall -Wcast-align -Wsynth # -Wcast-qual
--- 149,155 ----
# Don't use -m486, it's the default, except for those with the
# Pentium optimized compiler; for them -m486 makes things worse.
#OPTIMIZER = -g #-m486 -pipe
! OPTIMIZER = -O2 -fomit-frame-pointer #-m486 -pipe
# -Wsynth is new in g++-2.6.x, however 2.5.x does not support it
# Under gxx-2.7.0 -Wcast-qual will drown you with warnings from libg++ includes
WARNINGS = -Wall -Wcast-align -Wsynth # -Wcast-qual
***************
*** 165,171 ****
# Ask ld to strip symbolic information, otherwise, expect a 32Mb pigiRpc
! LINKSTRIPFLAGS=-Wl,-S,-x
#LINKFLAGS=-L$(LIBDIR) $(LINKSTRIPFLAGS)# -static
#LINKFLAGS_D=-L$(LIBDIR) -g -static
--- 175,181 ----
# Ask ld to strip symbolic information, otherwise, expect a 32Mb pigiRpc
! LINKSTRIPFLAGS=-Wl,-s
#LINKFLAGS=-L$(LIBDIR) $(LINKSTRIPFLAGS)# -static
#LINKFLAGS_D=-L$(LIBDIR) -g -static